﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _025_第二十五章_中介者模式
{
    abstract class Country
    {
        protected UnitedNation manager;

        public Country(UnitedNation manager)
        {
            this.manager = manager;
            manager.Register(this);
        }

        public abstract void SendMessage(string content, Country target);

        public abstract void ReceiveMessage(string content);

    }
}
